package com.cloud.model.entity.wxusersubscribe;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.cloud.model.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <b><code>WxUserSubscribe</code></b>
 * <p/>
 * WxUserSubscribe的具体实现
 * <p/>
 * <b>Creation Time:</b> 2020-01-12 00:22:03.
 *
 * @author ${model.author}
 * @version 1.0.0
 * @since cloud-spring-boot-be 1.0.0
 */
@Entity
@Table(name="t_wx_user_subscribe")
@DynamicInsert
@DynamicUpdate
public class WxUserSubscribe extends BaseEntity implements Serializable {

    /**
    * The constant serialVersionUID.
    */
    private static final long serialVersionUID = -1L;

    @Column(name = "subscribe_id")
    @ApiModelProperty(value = "模板id")
    private String subscribeId;

    @Column(name = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @Column(name = "type")
    @ApiModelProperty(value = "授权状态： 0：拒绝 1：允许 2：后台封禁")
    private Integer type;

    public String getSubscribeId() {
        return subscribeId;
    }

    public void setSubscribeId(String subscribeId) {
        this.subscribeId = subscribeId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public WxUserSubscribe(){
        super();
    }

}
